<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
		<meta charset="utf-8" />
		<link rel="stylesheet" type="text/css" href="css/style.css"/>
	<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
   <li><a href="#">学校组织结构</a></li>
    <li><a href="#">院系信息</a></li>
    </ul>
    </div>
    <div class="rightinfo">
    <div class="tools">
   	 <form id="searchForm" class="form-search"
							action="department/department_page_list.do" method="post">
    	<ul class="seachform1">   
		<li><input name="XYMC" type="text" class="scinput1" value="${XYMC}" placeholder="请输入院系名称"/></li>
		<li><input name="" type="button" class="scbtn" id="btnSearch" value="查询"/></li>   
		</ul>	
		<input type="hidden" name="pageNumber" value="1" />
		</form>
    	<!--<ul class="toolbar">
        <li class="click"><span><img src="images/t01.png" /></span>添加</li>
        <li class="click"><span><img src="images/t02.png" /></span>修改</li>
        <li><span><img src="images/t03.png" /></span>删除</li>
        <li><span><img src="images/t04.png" /></span>统计</li>
        </ul>
        <ul class="toolbar1">
        <li><span><img src="images/t05.png" /></span>设置</li>
        </ul>
    -->
    </div>
    <table class="tablelist">
    	<thead>
    	<tr>
        <th>序号</th>
        <th>院系代码</th>
        <th>院系名称</th>
      </tr>
        </thead>
        <tbody>
        <c:forEach items="${departmentList}" var="department"  varStatus="status">
      <tr>
       <td>${ status.index + 1}</td>
        <td>${department.XYDM}</td>
        <td>${department.XYMC}</td>
      </tr> 
      </c:forEach>
        </tbody>
    </table>
    <div class="pagin">
    	<%@ include file="page.jsp"%>
    </div>
    </div>
    <script type="text/javascript" src="js/jquery.js"></script>
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
		$(document).ready(function(){
		  $(".click").click(function(){
		  $(".tip").fadeIn(200);
		  });
		  
		  $(".tiptop a").click(function(){
		  $(".tip").fadeOut(200);
		});
		
		  $(".sure").click(function(){
		  $(".tip").fadeOut(100);
		});
		
		  $(".cancel").click(function(){
		  $(".tip").fadeOut(100);
		});
		
		});
		$( "#btnSearch" ).on('click', function(e) {
			$("#searchForm").submit();
		});
		function GoToPage(toPage,totalPage) {
		    if(toPage<=0) return;
		    if(toPage>totalPage) return;
		    $("input[name='pageNumber']").val(toPage);
		    $("#searchForm").submit();
		};
	</script>

</body>

</html>

